package com.sky.mapper;

import com.sky.entity.DishFlavor;

import java.util.List;


public interface DishFlavorsMapper {

    /**
     * 删除口味
     * @param id
     */
//    @Delete("delete from dish_flavor where dish_id=#{id}")
    void delete(Long id);

    /**
     * 根据菜品id查询口味表
     * @param id
     * @return
     */
//    @Select("select * from dish_flavor where dish_id=#{id}")
    List<DishFlavor> selectById(Long id);


    /**
     * 新增甜度
     * @param flavors
     */

    void insert(List<DishFlavor> flavors);

    /**
     * 根据菜品id集合删除甜味
     * @param dishIds
     */
    void deleteAll(List<Long> dishIds);
}
